<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="DataLoad.asp"-->

<html>
<head>
<title><%=GuildName%> - DKP系统</title>
<script language="JavaScript" src="inc/jquery.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Generator" content="EditPlus">
<meta name="Author" content="SULei">
<meta name="Keywords" content="DKP WOW GUILD">
<meta name="Description" content="">
<link href="<%=StylePath%>/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="<%=StylePath%>/styleplus.js"></script>
<style type="text/css" media="all">

</style>
</head>

<body>
<div class="header">
<!--#include file="menu.asp"-->
</div>
<div class="main">
<%
Select Case Request("action")
	Case "raidadd"
		if not (lvlGBook=0 or lvlGBook<>3) then
		Call AddGuestBook()
		end if
	Case "planadd"
		if lvlGBook>0 and lvlGBook<3  then
		Call AddGuestBook()
		end if
	Case else
		response.redirect URL
End Select

%>
      </div>
<div id="footer"><!--#include file="footer.asp"--></div>
</body>
</html>
<%
Sub AddGuestBook()
if request("gb_author")<>"" and request("gb_text")<>"" then 
	sql="select * from gbook where (id is null)"
	rs.open sql,conn,1,3
		rs.addnew
		rs("gbook_poster")=request("gb_author")
		rs("gbook_content")=request("gb_text")
		rs("gbook_time")=now()
		rs("gbook_raidid")=request("gbook_id")
		rs.update
end if
response.redirect URL
End Sub
%>

